-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[18.09 BACKPORT] Pick a random host port if the user does not specify a host port. #2369
Conversation
For overlay, l2bridge, and l2tunnel, if the user does not specify a host port, windows driver will select a random port for them. This matches linux behavior. For ics and nat networks the windows OS will choose the port. Signed-off-by: Pradip Dhara <pradipd@microsoft.com> Signed-off-by: Madhu Venugopal <madhu@docker.com>
Can you change the title to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (not a maintainer)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
backport of #2368 |
full diff: moby/libnetwork@c902989...872f0a8 - moby/libnetwork#2354 [18.09 backport] Cleanup the cluster provider when the agent is closed - backport of moby/libnetwork#2307 Fix for problem where agent is stopped and does not restart - fixes docker/for-linux#495 Docker swarm overlay networking not working after --force-new-cluster - moby/libnetwork#2369 [18.09 BACKPORT] Pick a random host port if the user does not specify a host port - backport of moby/libnetwork#2368 (windows) Pick a random host port if the user does not specify a host port Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: moby/libnetwork@c902989...872f0a8 - moby/libnetwork#2354 [18.09 backport] Cleanup the cluster provider when the agent is closed - backport of moby/libnetwork#2307 Fix for problem where agent is stopped and does not restart - fixes docker/for-linux#495 Docker swarm overlay networking not working after --force-new-cluster - moby/libnetwork#2369 [18.09 BACKPORT] Pick a random host port if the user does not specify a host port - backport of moby/libnetwork#2368 (windows) Pick a random host port if the user does not specify a host port Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 5354408039681020f9ad6afe4bf696fc90f9ce69 Component: engine
Additional post-18.09.5 fixes: Builder: - Fixed COPY and ADD with multiple <src> to not invalidate cache if DOCKER_BUILDKIT=1.moby/moby#38964 Networking: - Cleaned up the cluster provider when the agent is closed. moby/libnetwork#2354 - Windows: Now selects a random host port if the user does not specify a host port. moby/libnetwork#2369 - --service-cluster-ip-range is now configurable for UCP install. docker/orca#10263 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Additional post-18.09.5 fixes: Builder: - Fixed COPY and ADD with multiple <src> to not invalidate cache if DOCKER_BUILDKIT=1.moby/moby#38964 Networking: - Cleaned up the cluster provider when the agent is closed. moby/libnetwork#2354 - Windows: Now selects a random host port if the user does not specify a host port. moby/libnetwork#2369 - --service-cluster-ip-range is now configurable for UCP install. docker/orca#10263 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Additional post-18.09.5 fixes: Builder: - Fixed COPY and ADD with multiple <src> to not invalidate cache if DOCKER_BUILDKIT=1.moby/moby#38964 Networking: - Cleaned up the cluster provider when the agent is closed. moby/libnetwork#2354 - Windows: Now selects a random host port if the user does not specify a host port. moby/libnetwork#2369 - --service-cluster-ip-range is now configurable for UCP install. docker/orca#10263 Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit d692ecb) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Additional post-18.09.5 fixes: Builder: - Fixed COPY and ADD with multiple <src> to not invalidate cache if DOCKER_BUILDKIT=1.moby/moby#38964 Networking: - Cleaned up the cluster provider when the agent is closed. moby/libnetwork#2354 - Windows: Now selects a random host port if the user does not specify a host port. moby/libnetwork#2369 - --service-cluster-ip-range is now configurable for UCP install. docker/orca#10263 Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit c7e5f9c) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For overlay, l2bridge, and l2tunnel, if the user does not specify a host port, windows driver will select a random port for them. This matches linux behavior.
For ics and nat networks the windows OS will choose the port.
Signed-off-by: Pradip Dhara pradipd@microsoft.com
Signed-off-by: Madhu Venugopal madhu@docker.com